package com.ybwh.datasource.refreshable.druid;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>
 * druid数据源的属性
 * </p>
 *
 * @author fanbeibei
 * @version V1.0
 * @since 2019/4/8 17:40
 */
@Data

public class DruidRefreshDataSourceProperties {
    protected String url;
    protected String username;
    protected String password;
    protected String driverClassName;

    protected int initialSize = 5;
    protected int maxActive = 20;
    protected int minIdle = 5;
    protected int maxWait = 5;
    protected boolean poolPreparedStatements = true;
    protected int maxPoolPreparedStatementPerConnectionSize = 20;
    protected int maxOpenPreparedStatements = 20;
    protected String validationQuery = "SELECT 1 FROM DUAL";
    protected boolean testOnBorrow = false;
    protected boolean testOnReturn = false;
    protected boolean testWhileIdle = true;
    protected int timeBetweenEvictionRunsMillis = 60000;
    protected int minEvictableIdleTimeMillis = 60000;
    protected String filters = "stat,wall";


}
